<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>20样式的继承</title>
    <style>
      #d1 {
        height: 600px;
        padding: 50px;
        background-color: gray;
      }

      #d2 {
        height: 400px;
        background-color: orange;
        padding: 50px;
        font-size: 30px;
        font-weight: bold;
      }

      #d3 {
        height: 200px;
        background-color: green;
      }
    </style>
  </head>
  <body>
    <div id="d1">
      <div id="d2">
        <div id="d3">JavaScript</div>
      </div>
    </div>
  </body>
</html>
